package Day04作业;

import java.util.Arrays;

/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-04 19:57:13
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-04 20:20:18
 * @别瞎看: 你个无脑牛马
 */
public class Test1{
    public static void main(String[] args) {
        String[] array1={"a","b","c"};
        String arrayStr1=Arrays.toString(array1);
        System.out.println("输出方式一");
        System.out.println("arrayStr:"+arrayStr1);
        
        String[] array2=new String[3];
        array2[0]="a";
        array2[1]="b";
        array2[2]="c";
        String arrayStr2=Arrays.toString(array2);
        System.out.println("输出方式二");
        System.out.println("arrayStr:"+arrayStr2);

        String[] Oldarray3={"a","b","c"};
        String[] array3=Arrays.copyOf(Oldarray3,Oldarray3.length);
        String arrayStr3=Arrays.toString(array3);
        System.out.println("输出方式三");
        System.out.println("arrayStr:"+arrayStr3);
    }
}